package com.zbkj.service.service;

import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.response.BrandAgentRegionPageDataResponse;
import com.zbkj.common.request.BrandAgentRegionSearchRequest;
import com.zbkj.common.request.BrandAgentRegionSaveRequest;
import com.zbkj.common.model.agent.BrandAgentRegion;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
/**
* @author dazongzi
* @description BrandAgentRegionService 接口
* @date 2025-07-01
*/
public interface BrandAgentRegionService extends IService<BrandAgentRegion> {

    Boolean create(BrandAgentRegionSaveRequest brandAgentRegionSaveRequest);

    /**
     * 分页查询品牌商代理设置表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<BrandAgentRegionPageDataResponse> getList(BrandAgentRegionSearchRequest request, PageParamRequest pageParamRequest);

    List<BrandAgentRegion> getListByBrandAgentId(Integer brandAgentId);

    void deleteByConfigId(List<Integer> auditIdList);

    List<BrandAgentRegion> getList(Integer brandId, String districtId, Integer level);

    List<BrandAgentRegion> getNextLevelNameList(Integer brandId, List<Integer> auditIdList, int level);

    BrandAgentRegion getCommunity(Integer id);
}